﻿using PairingMatrix.Services;

namespace PairingMatrix.Model
{
    public class PairingMatrixModel : BusinessModelBase
    {
        private readonly PairingMatrixServiceClient service;

        public PairingMatrixModel(PairingMatrixServiceClient service)
        {
            this.service = service;
            CardWallModel = new CardWallModel(service);
        }

        private CardWallModel _cardWallModel;
        public CardWallModel CardWallModel
        {
            get { return _cardWallModel; }
            set
            {
                if (_cardWallModel == value)
                    return;
                _cardWallModel = value;
                OnPropertyChanged("CardWallModel");
            }
        }
    }
}